﻿/***********************************************************************
 * <copyright file="IRoleInSite.cs" company="B/S JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@newman.vn
 * Website:
 * Create Date: Monday, March 31, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections.Generic;
using BusinessSecurity;

namespace DataSecurity.StandartInterfaces
{
    /// <summary>
    /// IRoleInSite
    /// </summary>
    public interface IRoleInSite
    {
        /// <summary>
        /// Gets the specified identifier.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <returns></returns>
        RoleInSite Get(int id);
        /// <summary>
        /// Gets the list.
        /// </summary>
        /// <returns></returns>
        List<RoleInSite> GetListByRole(int roleId);
        /// <summary>
        /// Gets the list by site.
        /// </summary>
        /// <param name="siteId">The site identifier.</param>
        /// <returns></returns>
        List<RoleInSite> GetListBySite(int siteId);
        /// <summary>
        /// Inserts the specified permission.
        /// </summary>
        /// <param name="roleId">The role identifier.</param>
        /// <param name="roleInSites">The role in sites.</param>
        /// <returns></returns>
        object Insert(int roleId,List<RoleInSite> roleInSites);

        /// <summary>
        /// Updates the specified permission.
        /// </summary>
        /// <param name="roleInSites">The role in sites.</param>
        /// <returns></returns>
        object Update(List<RoleInSite> roleInSites);

        /// <summary>
        /// Deletes the specified permission.
        /// </summary>
        /// <param name="roleId">The role identifier.</param>
        /// <returns></returns>
        object Delete(int roleId);     
    }
}
